<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>TwitterM2i©</title>
    </h:head>
    <h:body>
        <h:form>

            <h:panelGrid  columns="5" cellspacing="4">
                <h:link outcome="tweet">Tweeter</h:link>
                <h:link outcome="profile">Mon Profil</h:link>
                <h:link outcome="HashTagRecherche">Recherche hashtag</h:link>
                <h:link outcome="listUser">Follow any Users</h:link>
                <h:link outcome="ListTweet">Retweet any tweet</h:link>
            </h:panelGrid>
            <br />
            <h:dataTable value="#{ListUserBean.listOfUsers}" var="item">
                <h:column>
                    <h:outputText styleClass="output" value="#{item.name}"/>
                </h:column>
                <h:column>
                    <h:commandButton value="Follow"  action="#{ListUserBean.follow(item)}" />
                </h:column>
            </h:dataTable>
        </h:form>
    </h:body>
</html>

